:: Int -> Get DataEntry -> Get [DataEntry] -package:parsers package:base-compat-batteries

replicateM n act performs the action act n times, and then returns the list of results:

Examples

>>> import Control.Monad.State

>>> runState (replicateM 3 $ state $ \s -> (s, s + 1)) 1
([1,2,3],4)